package com.ellricky.baselib.ui

import com.andr.common.util.ActivityUtil
import com.andr.common.util.ViewUtil
import com.ellricky.baselib.R
import com.ellricky.baselib.ui.web.WebViewActivity
import kotlinx.android.synthetic.main.base_activity_web.*

class CommonWebViewActivity : WebViewActivity() {
    override fun getContentRes() = R.layout.base_activity_web

    override fun initUIView() {
        ActivityUtil.addActivity(this)

        super.initUIView()

        ib_back.setOnClickListener {
            if (ViewUtil.isFastDoubleClick()) return@setOnClickListener
            backPage()
        }
    }

    override fun setTitle(p0: String?) {
        super.setTitle(p0)
        tv_title.text = p0
    }
}